<?php
class WebChatController extends Controller{
	public function get_access_token(){
		$code=$_GET['code'];
		$webChat=new WebChat();
		$rs=$webChat->get_user_access_token($code);
		$_SESSION['user']['openid']=$rs['openid'];
		$this->redirect('Index/index');
	}
}